#
# Copyright (C) 2018-2019 Intel Corporation
#
# SPDX-License-Identifier: MIT
#

set(IGDRCL_SRCS_tests_os_interface_linux
  ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
  ${CMAKE_CURRENT_SOURCE_DIR}/allocator_helper_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/debug_env_reader.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/device_command_stream_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/device_factory_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/device_factory_tests.h
  ${CMAKE_CURRENT_SOURCE_DIR}/device_os_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/driver_info_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_buffer_object_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream_mm_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/drm_engine_info_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_gem_close_worker_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/drm_mapper_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/drm_memory_info_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_memory_manager_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_memory_manager_tests.h
  ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/drm_memory_manager_allocate_in_device_pool_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_mock.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_mock.h
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_neo_create.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_os_memory_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_residency_handler_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/drm_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/file_logger_linux_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/hw_info_config_linux_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/hw_info_config_linux_tests.h
  ${CMAKE_CURRENT_SOURCE_DIR}/linux_create_command_queue_with_properties_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/mock_os_time_linux.h
  ${CMAKE_CURRENT_SOURCE_DIR}/mock_performance_counters_linux.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/mock_performance_counters_linux.h
  ${CMAKE_CURRENT_SOURCE_DIR}/os_interface_linux_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/os_time_test.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux_tests.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/self_lib_lin.cpp
)
if(UNIX)
  target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_os_interface_linux})
endif()
set_property(GLOBAL PROPERTY IGDRCL_SRCS_tests_os_interface_linux ${IGDRCL_SRCS_tests_os_interface_linux})
add_subdirectories()
